package com.chixing.controller;


import com.chixing.entity.OrderExtension;
import com.chixing.service.IOrderExtensionService;
import com.chixing.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@RestController
@RequestMapping("/order-extension")
public class OrderExtensionController {
    @Autowired
    private IOrderExtensionService orderExtensionService;

    @PostMapping("add")
    public Result addExtension(@RequestBody OrderExtension orderExtension){
        return orderExtensionService.addExtension(orderExtension);
    }
}
